from xqdata_rq.func import _get_trading_dates
from ddbtools import DBDf, BaseCRUD

def update_tradeday(session):
    tradeday =_get_trading_dates()
    crud = BaseCRUD("dfs://infos", "tradeday")
    crud.key_cols = ["datetime"]
    data = DBDf(session=session, db_path="dfs://infos", table_name="tradeday",data=tradeday)
    crud.upsert(session, data)